import { defineStore } from 'pinia';

export const useSocketMsg = defineStore('useSocketMsg', {
  state: () =>
    <{ status: string; sample_status: any; error: any; notices: { type: number; msg: string; time: number; isRead: boolean }[] }>{
      status: '',
      sample_status: null,
      error: null,
      notices: [
        // {
        //   type: 1,
        //   msg: '这是一条通知',
        //   time: 1637913476,
        //   isRead: false,
        // },
      ],
    },
  actions: {},
});
